import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getListByPage = params => axios.post(`${SERVER.CLAIMFAC}/rPDestory/getListByPage`,  params );

// 编辑
export const edit = params => axios.get(`${SERVER.CLAIMFAC}/rPDestory/selectById/${params}`);

// 销毁审核
export const approveDestory = params => axios.post(`${SERVER.CLAIMFAC}/rPDestory/approveDestory`,  params );

// 删除客户订单(物理删除)
// export const deleteOrders = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/customerOrders/delete`, { params });


export const excelExport = params => {
  return axios({
    url:`${SERVER.CLAIMFAC}/rPDestory/getApplyListForExport`,
    method: 'POST',
    data: params,
    responseType: 'blob'
  });
};
  //下载中心导出
  export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);